import router from './router'

/** 白名单路由 */
const whiteList = ['/login']

router.beforeEach((to, from, next) => {
  // 判断是否登录
  if (whiteList.indexOf(to.path) !== -1) {
    next()
  } else {
    next()
  }
})

// eslint-disable-next-line no-unused-vars
router.afterEach((to, from) => {})
